import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listInfo(query) {
  return request({
    url: '/system/info/list', method: 'get', params: query
  })
}

// 查询【请填写功能名称】详细
export function getInfo(id) {
  return request({
    url: '/system/info/' + id, method: 'get'
  })
}

export function addInfo(data) {
  return request({
    url: '/system/info', method: 'post', data: data
  })
}

export function updateInfo(data) {
  return request({
    url: '/system/info', method: 'put', data: data
  })
}

export function delInfo(id) {
  return request({
    url: '/system/info/' + id, method: 'delete'
  })
}

export function invoke(data){
  return request({
    url: '/system/info/invoke',method:'post',data :data
  })
}

export function online(id) {
  return request({
    url: '/system/info/online/' + id, method: 'post'
  })
}

export function offline(id) {
  return request({
    url: '/system/info/offline/' + id, method: 'post'
  })
}
